package com.woniu.order.client;

import com.woniu.core.util.Result;
import com.woniu.order.client.dto.GetUserInfoByIdDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "account-server",path = "/account")
public interface AccountServerClient {
    @ApiOperation("根据id查询用户信息")
    @GetMapping("/tUserInfo/getUserInfoById/{id}.api")
    public Result<GetUserInfoByIdDTO> getUserInfoById(@PathVariable("id") Integer id) throws Exception;
}
